import { createRouter, createWebHashHistory } from 'vue-router'

const Home = () => import('@/views/home/home.vue')
const Message = () => import('@/views/message/message.vue')
const Order = () => import('@/views/order/order.vue')
const Collect = () => import('@/views/collect/collect.vue')

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/home' },
    {
      path: '/',
      name: 'home',
      component: Home,
    },
    {
      path: '/message',
      name: 'message',
      component: Message,
    },
    {
      path: '/order',
      name: 'order',
      component: Order,
    },
    {
      path: '/collect',
      name: 'collect',
      component: Collect,
    },
  ],
})

export default router
